package sjms.create.prototype;

/**
 * @ClassName:
 * @Description:
 * @Author fcb
 * @Date 2020/5/26 14:20
 */
public abstract class Car implements Cloneable {

    protected String brand;

    protected String name;

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Object clone() {
        Object clone = null;
        try {
            clone = super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return clone;
    }
}

